package com.marvels.common.utils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import com.marvels.common.utils.ServerProperties;


@Component
public class ResourceProperties {
	
	
	private static String configPropertiesPath;
	
	
	public  String getConfigPropertiesPath() {
		return configPropertiesPath;
	}
	
	@Value("${config.properties.path}")
	public  void setConfigPropertiesPath(String configPropertiesPath) {
		ResourceProperties.configPropertiesPath = configPropertiesPath;
	}

	public static String getCollectionQueryWhiteList(){
		return ServerProperties.getValue(configPropertiesPath, "resource.properties", "collection.query.white.list");
	}
	
}
